package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.order.OrderDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /**
     * 针对订单详情的数据，做匹配保存
     * @param orderId
     * @param orderDetailList
     */
    void batchInsert(
            @Param("orderId") Long orderId,
            @Param("orderDetailList") List<OrderDetail> orderDetailList);
}
